package com.guoguo.mapper;


import com.guoguo.entity.Category;
import com.guoguo.entity.vo.AcCategoryGroupVO;
import com.guoguo.entity.vo.CategoryVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;


import java.util.List;

/**
 * Created by Administrator on 2017/8/9 0009.
 */
public interface CategoryMapper {
    List<CategoryVO> getCategoryList();

    List<AcCategoryGroupVO> getCategory();

    List<AcCategoryGroupVO> selectBySortDesc(@Param("cateName") String cateName, @Param("isShow") Integer isShow, @Param("groupId") String groupId);


    List<AcCategoryGroupVO> selectBySortAsc(@Param("cateName") String cateName, @Param("isShow") Integer isShow, @Param("groupId") String groupId);

    List<AcCategoryGroupVO> selectByCreateTimeAsc(@Param("cateName") String cateName, @Param("isShow") Integer isShow, @Param("groupId") String groupId);

    List<AcCategoryGroupVO> selectByCreateTimeDesc(@Param("cateName") String cateName, @Param("isShow") Integer isShow, @Param("groupId") String groupId);

    int insert(Category categorys);

    int count(Category categorys);

    int insertSelective(Category categorys);

    Category selectByPrimaryKey(String cateId);

    int deleteByPrimaryKey(String cateId);

    Category updateBySelective();

    int updateCategory(Category category);

    int updateByPrimaryKeySelective(Category category);

    List<CategoryVO> selectCategoryPage();

    int UDByPrimaryKey(String cateId);
}
